﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Dictionary 的实体类.
	/// </summary>
	public partial class DictionaryEntity
	{
		/// <summary>
		/// 表名的标题
		/// </summary>
		[NotMapped]
		public string TableTitle
		{
			get
			{
				string result = string.Empty;
				switch (TableName)
				{
					case "Contacter":
						result = "联系人信息表";
						break;
					case "ClientLog":
						result = "客户联系记录表";
						break;
					case "Client":
						result = "客户信息表";
						break;
					case "Company":
						result = "公司信息表";
						break;
					case "ServiceLog":
						result = "服务记录表";
						break;
					case "ComplainLog":
						result = "投诉记录表";
						break;
					case "Orders":
						result = "订单表";
						break;
					case "Author":
						result = "作者表";
						break;
				}
				return result;
			}
		}
	}
}
